/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package javaapplication1;

/**
 *
 * @author alunoinf
 */
public class HP implements Impressora,Scanner {
    
    private int qtdeDePapeis;
    private boolean atolada;

    @Override
    public void imprime(String conteudo) {
        if (qtdeDePapeis > 0 ){
            if(!atolada){
                qtdeDePapeis--;
                System.out.println(conteudo);
            }
            
        }else{
            throw new RuntimeException("Não tem Papel");
        }
    }

    @Override
    public void carregaPapel() {
     qtdeDePapeis ++;   
    }

    @Override
    public void atolaPapel() {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public String escanear() {
        
    }
    
}
